<div class="row animated" ng-class="{true: 'fadeInRight', false:'fadeInLeft'}[currentAnimated]">
  <div class="panel panel-default">
    <div class="panel-heading">
      <a ng-click="discard()" href="javascript:;"><i class="backBtn fa fa-arrow-circle-left"></i></a>
      <span class="panelTitle" ng-bind="ModelForm.title"></span>
    </div>
    <div class="panel-body">
      <form novalidate name="modelForm" class="form-horizontal" role="form">
        <div class="form-group" ng-class="{'has-error': modelForm.name.$invalid && modelForm.name.$dirty}">
          <label class="control-label col-xs-3 col-md-2">产品款式名称：</label>
          <div class="col-xs-7 col-md-8">
            <input type="text" class="form-control w25c" name="name" placeholder="产品款式名称" ng-model="models.name" required>
          </div>
        </div>
        <div class="form-group">
          <label class="control-label col-xs-3 col-md-2">单价：</label>
          <div class="col-xs-7 col-md-8">
           <input type="text" class="form-control w25c" name="price" placeholder="单价" ng-model="models.price" required>
          </div>
        </div>
        <div class="form-group">
          <label class="control-label col-xs-3 col-md-2">尺寸：</label>
          <div class="col-xs-7 col-md-8">
            <input type="number" class="form-control fl w80" name="width" placeholder="长" ng-model="models.width" required>
            <input type="number" class="form-control fl w80" name="height" placeholder="宽" ng-model="models.height" require>
            <input type="text" class="form-control fl w80" name="unit" placeholder="单位" ng-model="models.unit" required>
          </div>
        </div>
        <div class="form-group">
          <label class="control-label col-xs-3 col-md-2">产品图：</label>
          <div class="col-xs-7 col-md-8">
            <div class="button btn btn-primary fl" ngf-select="upload($files)" multiple="multiple" ngf-pattern="'image/*'"
              ngf-accept="'image/*'" ngf-max-size="10MB">上传图片</div>
            <a href="javascript:void(0)" class="btn btn-info ml15" ng-click="openPhotoLibs()">图片库</a><span class="clearfix"></span>
            <iconlist></iconlist>
          </div>
        </div>
        <div class="form-group">
          <div class="col-xs-4 col-xs-offset-2">
            <button class="btn btn-primary" ng-click="submitForm()" ng-disabled="modelForm.$invalid">保存</button>
            <button class="btn btn-white" ng-click="discard()">取消</button>
          </div>
        </div>
      </form>
    </div>
  </div>
</div>
<imagepreview></imagepreview>
<upload-task></upload-task>

<script src="libs/kindeditor/kindeditor.js" type="text/javascript"></script>
<script src="libs/kindeditor/lang/zh-CN.js" type="text/javascript"></script>